﻿using System;
using System.Collections;

namespace BaseSyntax.CompareTest
{
	public class PersonComparer:IComparer
	{
		public static IComparer Default = new PersonComparer();
		
		public int  Compare(object p1, object p2)
		{
			return ((Person) p1).Age - ((Person) p2).Age;
		}
	}
}